package com.cskaoyan.controller;

import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.service.HomeIndex;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wx/home")
public class WxHomeController {
    @Autowired
    HomeIndex homeIndex;
    @GetMapping("/index")
    public BaseRespVo indexGoods(){
        return BaseRespVo.ok(homeIndex.getIndex());

    }
}
